package com.ls.fw.data.support.parse;

import org.apache.hadoop.hbase.client.Result;
import org.apache.solr.common.SolrInputDocument;

/**
 * Extracts a value or collection of values from an HBase {@code Result} and transforms them into a {@code SolrInputDocument}.
 */
public interface SolrDocumentExtractor {

    /**
     * Extracts fields and values from an HBase {@code Result} and puts them into a SolrInputDocument.
     * 
     * @param input {@code Result} to be mapped to an indexable form
     * @param solrInputDocument document where fields are to be added
     */
    void extractDocument(Result input, SolrInputDocument solrInputDocument);
}
